package com.mystnihon.freeremote.data;

import java.io.Serializable;

import org.json.JSONObject;

import com.mystnihon.freeremote.db.table.ChannelTable;

public class Channel extends ChannelTable implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = -778251631720881815L;
    
    
    
    
    private static final String JSON_FREEBOX_ID = "fbx_id";
    private static final String JSON_NAME = "name";
    private static final String JSON_CHANNEL_ID = "id";
    private static final String JSON_IMAGE = "image";
    private static final String JSON_CHANNEL = "canal";

    public Channel(JSONObject jObject) {
        mChannelId = jObject.optInt(JSON_CHANNEL_ID);
        mFreeboxId = jObject.optInt(JSON_FREEBOX_ID);
        mChannelNumber = jObject.optInt(JSON_CHANNEL);
        mName = jObject.optString(JSON_NAME);
        mImage = jObject.optString(JSON_IMAGE);
    }

}
